//
//  GJAlertController.h
//  Community
//
//  Created by xtjun on 2023/7/4.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

 
@interface HJAlertAction: NSObject

@property (nonatomic, copy) void (^__nullable handler)(void);
@property (nonatomic, copy) NSString *title;
@property (nonatomic, strong, nullable) UIColor *titleColor;
@property (nonatomic, strong, nullable) UIColor *backgroundColor;


@end


@interface HJAlertController : UIViewController

@property (nonatomic, copy) NSAttributedString *atributedMessage;
@property (nonatomic, strong) UIColor *messageColor;
@property (nonatomic, assign) NSTextAlignment messageTextAlignment;
@property (nonatomic, strong) UIColor *titleColor;

+ (void)alertInController:(UIViewController *)controller title:(nullable NSString *)title message:(nullable NSString *)message left:(nullable void (^)(HJAlertAction *action))left right:(nullable void (^)(HJAlertAction *action))right;
- (void)dismiss;

@end

NS_ASSUME_NONNULL_END
